package com.wenan.ui.reports
{
	import com.wenan.AppGlobal;
	import com.wenan.data.PageInfo;
	import com.wenan.ui.layout.ModulePage;
	import com.wenan.ui.layout.NavigatorPage;
	import com.wenan.ui.layout.PageBuilder;

	public class ReportPageBuilder extends PageBuilder
	{
		public function ReportPageBuilder()
		{
			super();
		}
		
		public override function get pageName():String
		{
			return "Report";
		}
		
		public override function createPage(pageInfo:PageInfo):ModulePage
		{
			
			var page:NavigatorPage = new NavigatorPage();
//			var page:NavigatorPage = AppGlobal.modulePageContainer.currentPage as NavigatorPage;
//			if(!page)
//			{
//				page = new NavigatorPage();
//			}
			page.clientPanel = new ReportClientPanel();
			page.pageInfo = pageInfo;
			return page;
		}
	}
}